<template>
  <div class="footer">
    <!--web-->
    <div class="web" v-if="$store.state.type == 1">
      <div class="foot-box">
        <div class="flex">
          <img src="../assets/common/logo.png" style="margin-right: 20px">
          <div>
            <div class="title">丽晶微电子</div>
            <div class="text">丽晶总部： 地址:无锡市梁溪区金山北工业园金山四支路9-2、9-3</div>
            <div class="text">集团子站： 家电 电力设备 医疗 地产 金融投资</div>
          </div>
        </div>
        <div class="right">
          <div class="right-text">
            <div class="phone">400-668-6288</div>
            <div class="text">客服工作时间：周一至周日00:00-24:00</div>
          </div>
          <img src="https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=4259430548,1517019785&fm=11&gp=0.jpg"
               style="height: 146px;width: 146px;margin-left: 20px">
        </div>
      </div>
      <div class="foot-box">
        <div class="left">
          <div class="item" @click="goUrl('法律声明')">法律声明</div>
          <div class="item" @click="goUrl('网站地图')">网站地图</div>
          <div class="item" @click="goUrl('联系我们')">联系我们</div>
        </div>
        <div class="right">© 2019 版权所有利晶微电子 浙公网安备 Copyright@2020 Leyard Optoelectrionc Co.,Ltd.版权所有</div>
      </div>
    </div>

    <!--phone-->
    <div v-else>

    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goUrl(url) {
      // 跳转链接
      alert('点击了' + url)
    }
  }
}
</script>

<style scoped lang="scss">
.flex {
  display: flex;
  align-items: center;
}

.footer {
  .web {
    width: 100vw;
    height: 334px;
    background: #083F8F;
    position: relative;
    color: rgba(255, 255, 255, 0.7);

    &:after {
      position: absolute;
      bottom: 80px;
      display: block;
      content: '';
      width: 100vw;
      height: 1px;
      background: rgba(255, 255, 255, 0.2);
    }

    .foot-box {
      width: 1200px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 0 auto;

      .left {
        width: 239px;
        display: flex;
        align-items: center;
        justify-content: space-between;

        .item {
          cursor: pointer;
        }
      }

      &:nth-child(1) {
        height: 254px;
      }

      &:nth-child(2) {
        height: 80px;
      }

      .right {
        display: flex;
        align-items: center;

        .right-text {
          width: 300px;
          text-align: right
        }
      }


      .title {
        font-size: 28px;
        color: #fff;
        font-weight: bold;
        margin-bottom: 30px;
      }

      .text {
        line-height: 2;
      }

      .phone {
        color: #fff;
        font-size: 32px;
        margin-bottom: 28px;
      }
    }
  }
}
</style>
